package com.lei.yohojava_002.model;

import com.lei.library_mvp_retrofit.http.api.Api;
import com.lei.library_mvp_retrofit.http.factroy.BaseRetrofitFactroy;
import com.lei.yohojava_002.contract.YoHoContract;

import io.reactivex.Observable;
import okhttp3.RequestBody;

/**
 * @ProjectName : YoHoJava_002
 * @Author : 雷金泷
 * @Time : 2021/1/8 18:37
 * @Description : 文件描述
 */
public class YoHoModel implements YoHoContract.Model {

    @Override
    public void destroy() {

    }

    @Override
    public Observable login(String request) {
        return BaseRetrofitFactroy.create(Api.class).login(request);
    }

    @Override
    public Observable register(String request) {
        return BaseRetrofitFactroy.create(Api.class).register(request);
    }
}
